home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmSelectIt
- Caption = "The SelectIt Program"
- ClientHeight = 4905
- ClientLeft = 1095
- ClientTop = 1770
- ClientWidth = 7365
- Height = 5595
- Icon = SELECTIT.FRX:0000
- Left = 1035
- LinkTopic = "Form1"
- Picture = SELECTIT.FRX:0302
- ScaleHeight = 4905
- ScaleWidth = 7365
- Top = 1140
- Width = 7485
- Begin CommandButton cmdExit
- Caption = "E&xit"
- Height = 495
- Left = 2760
- TabIndex = 0
- Top = 4320
- Width = 1215
- End
- Begin Menu mnuFile
- Caption = "&File"
- Begin Menu mnuSelectFile
- Caption = "&Select File..."
- End
- Begin Menu mnuExit
- Caption = "E&xit"
- End
- End
- Option Explicit
- Sub cmdExit_Click ()
- End
- End Sub
- Sub Form_Load ()
- ' Load the frmGetFile form
- ' but do not display it
- Load frmGetFile
- ' Set the items of the cboFileType combo box
- ' of the frmGetFile form.
- frmGetFile.cboFiletype.AddItem "All Files (*.*)"
- frmGetFile.cboFiletype.AddItem "Text Files (*.txt)"
- frmGetFile.cboFiletype.AddItem "Doc Files (*.doc)"
- frmGetFile.cboFiletype.AddItem "BMP Files (*.bmp)"
- ' Set the current (default) setting of
- ' the combo box
- frmGetFile.cboFiletype.ListIndex = 0
- End Sub
- Sub mnuExit_Click ()
- End
- End Sub
- Sub mnuSelectFile_Click ()
- ' Display the frmGetFile form
- ' as a modal dialog box.
- frmGetFile.Show 1
- ' Display the name of the selected file
- If frmGetFile.Tag = "" Then
- ' No file was selected
- MsgBox "No file was selected", 48
- Else
- ' The selected file is frmGetFile.Tag
- MsgBox "File Selected: " + frmGetFile.Tag, 48
- End If
- End Sub
-